#ifndef LCD_PORT_H
#define LCD_PORT_H

#include "board.h"

#define LCD_WIDTH RK043FN48H_WIDTH
#define LCD_HEIGHT RK043FN48H_HEIGHT

#define LCD_PIXEL_FORMAT RTGRAPHIC_PIXEL_FORMAT_RGB565
#define LCD_BYTES_PER_PIXEL RGB565_BYTES_PER_PIXEL
#define LCD_BUF_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BYTES_PER_PIXEL)

#define LCD_HSYNC_WIDTH RK043FN48H_HSYNC
#define LCD_VSYNC_HEIGHT RK043FN48H_VSYNC
#define LCD_HBP RK043FN48H_HBP
#define LCD_VBP RK043FN48H_VBP
#define LCD_VFP RK043FN48H_VFP
#define LCD_HFP RK043FN48H_HFP

#define LCD_BITS_PER_PIXEL (LCD_BYTES_PER_PIXEL * 8)

#endif  // LCD_PORT_H